﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Text;
using SqlSugar;

namespace Model.Models
{
    /// <summary>
    /// 登录账号
    /// </summary>
    [SugarTable("sys_Account")]
    public class Account : BaseDBModel
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        [StringLength(100)]
        [Description("用户名称")]
        public string Name { get; set; } = "";

        /// <summary>
        /// 登录账号
        /// </summary>
        [StringLength(300)]
        [Description("登录账号")]
        public string AccountNo { get; set; } = "";

        /// <summary>
        /// 登录密码
        /// </summary>
        [StringLength(100)]
        [Description("登录密码")]
        public string Pwd { get; set; } = "";

        /// <summary>
        /// 密码加密KEY 【备用字段】
        /// </summary>
        [StringLength(100)]
        [Description("密码加密KEY 【备用字段】")]
        public string? PwdKey { get; set; } = "";

        /// <summary>
        /// 联系手机号
        /// </summary>
        [StringLength(30)]
        [Description("联系手机号")]
        public string? Tel { get; set; } = "";

        /// <summary>
        /// 1 启用 2 禁用 等其他
        /// </summary>
        [Description("1 启用 2 禁用 等其他")]
        public int EnableState { get; set; } = 1;

        /// <summary>
        /// 1 系统管理员 2 普通账号
        /// </summary>
        [Description("1 系统管理员 0 普通账号")]
        public int IsSysTem { get; set; } = 0;
    }
}
